<?php
class Namemanager_Data_Updatenamedata implements Namemanager_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }
    
    public function main(array $variables = null) {
        $variables['query'] = "UPDATE username SET first_name='".$variables['post']['first_name']."', last_name='".$variables['post']['last_name']."' WHERE username='".$variables['post']['username']."';";
        return $this->core_controller_dataoperation->main($variables);
    }
}
